<?php

function bestsell(){
	drupal_set_title(t('全国销售榜单'));
	$output = '';

	$output .= '<div class="main_top_back"><img src="'. base_path() .'sites/default/files/np.jpg" /></div>';

	$big_li = '';
	$query = db_select('node','n')
		->fields('n')
    	->condition('n.type', 'zshy_pic')
		->orderBy('n.created', 'DESC');
  	$nids = $query->execute()->fetchCol();
	foreach($nids as $item){

		$node = node_load($item);
		$field_ad_url = field_get_items('node', $node, 'field_ad_url');
		$field_ad_pic = field_get_items('node', $node, 'field_ad_pic');
		$big_li .= '<a href="http://'. check_url($field_ad_url[0]['value']) .'" target="_blank"><img src="' . file_create_url($field_ad_pic[0]['uri']) . '" /></a>';
	}

	$output .= '<div id="best-page-slider">';

	$output .= '<div class="slider-wrapper theme-light">';

	$output .= '<div id="c-slider" class="nivoSlider">' . $big_li . '</div>';

	$output .= '</div>';

	$output .='</div></div>';

	return $output;
}

function newproduct(){
	drupal_set_title(t('最新产品'));
	global $theme_path;
	$output = '';

	$output .= '<div class="main_top_back"><img src="'. base_path() .'sites/default/files/na.jpg" /></div>';
	$output .= '<div class="browse-products">';

	$output .='<div class="new-prod-item">';
	$output .='<div class="np-item-cont">';
	$output .='<div class="np-item-title">' . t('倩碧王牌水磁场精华霜') . '</div>';
	$output .='<div class="np-item-exp">' . t('水磁场精华能量非凡劲透
层层深透，寸寸水润') . '</div>';
	$output .='<div class="np-item-body">' . t('倩碧首创水嫩保湿精华霜，精华能量与乳霜至美相融。瞬间多层渗透科技媲美精华的渗透力，层层深透，寸寸水润，成就肌肤非凡透润。
更有4种精粹成份联手修复肌肤天然滋润保护膜、牢牢锁住滋养成份，赶走外界敏感刺激。 柔嫩、弹润、饱满，肌肤水份满载，澎湃满溢。') . '</div>';
	$output .='<div class="np-item-view"><a href="'. base_path() .'node/9"><img src="'. base_path() . $theme_path . '/images/view_button.jpg"></a></div>';
	$output .='</div>';
	$output .='<div class="np-item-img"><a href="'. base_path() .'node/9"><img src="'. base_path() . 'sites/default/files/np/1.jpg"></a></div>';
	$output .= '<div class="clearfix"></div>';
	$output .='</div>';

	$output .='<div class="new-prod-item">';
	$output .='<div class="np-item-cont">';
	$output .='<div class="np-item-title">' . t('全新倩碧水磁场晚安面膜') . '</div>';
	$output .='<div class="np-item-exp">' . t('肌肤在朝露中苏醒，早安！') . '</div>';
	$output .='<div class="np-item-body">' . t('犹如一个天然水磁场，令水份整夜倾润环绕。高倍渗透，密集修护，水份由表及里喂饱每一层肌肤，牢牢锁住不流失，并为第二天肌肤所需"蓄水"。
一整夜，水润沁透肌底，源源滋养不休息，肌肤内心蓄满水活营养。一下子变得丰盈饱满起来。清晨焕然苏醒，肌肤如饮朝露。水光透润迸出来，弹指欲滴。新的一天，早安！') . '</div>';
	$output .='<div class="np-item-view"><a href="'. base_path() .'node/10"><img src="'. base_path() . $theme_path . '/images/view_button.jpg"></a></div>';
	$output .='</div>';
	$output .='<div class="np-item-img"><a href="'. base_path() .'node/10"><img src="'. base_path() . 'sites/default/files/np/2.jpg"></a></div>';
	$output .= '<div class="clearfix"></div>';
	$output .='</div>';

	$output .='<div class="new-prod-item">';
	$output .='<div class="np-item-cont">';
	$output .='<div class="np-item-title-g">' . t('倩碧淡斑精华露') . '</div>';
	$output .='<div class="np-item-exp">' . t('没有斑的肌肤，白白净净
媲美皮肤学专业淡斑') . '</div>';
	$output .='<div class="np-item-body">' . t('20年来，倩碧携手全球顶尖皮肤学专家，不断挑战淡斑极限，发现突破性卓效淡斑成分CL302，媲美皮肤学专业淡斑。
4段式淡斑，层层瓦解黑色素精准祛除晒斑、熟龄斑、痘印等各类色斑。') . '</div>';
	$output .='<div class="np-item-view"><a href="'. base_path() .'node/11"><img src="'. base_path() . $theme_path . '/images/view_button.jpg"></a></div>';
	$output .='</div>';
	$output .='<div class="np-item-img"><a href="'. base_path() .'node/11"><img src="'. base_path() . 'sites/default/files/np/3.jpg"></a></div>';
	$output .= '<div class="clearfix"></div>';
	$output .='</div>';

	$output .='<div class="new-prod-item">';
	$output .='<div class="np-item-cont">';
	$output .='<div class="np-item-title-g">' . t('倩碧匀净粉底液') . '</div>';
	$output .='<div class="np-item-exp">' . t('融和高效美白精华成份') . '</div>';
	$output .='<div class="np-item-body">' . t('帮助肌肤美白、预防色素沉着。
质地轻盈水润，完美遮瑕，立现白净无瑕的美肤。配合卓越淡斑功效的淡斑精华：4周-8周-12周，循序渐进的强大淡斑功效，肤色一格一格白回来，斑点一格一格的淡化隐退。') . '</div>';
	$output .='<div class="np-item-view"><a href="'. base_path() .'node/12"><img src="'. base_path() . $theme_path . '/images/view_button.jpg"></a></div>';
	$output .='</div>';
	$output .='<div class="np-item-img"><a href="'. base_path() .'node/12"><img src="'. base_path() . 'sites/default/files/np/4.jpg"></a></div>';
	$output .= '<div class="clearfix"></div>';
	$output .='</div>';


	$output .= '<div class="clearfix"></div></div>';

	return $output;
}

//最受欢迎产品页面
function customerfav(){

	drupal_set_title(t('最受欢迎产品'));
	$output = '';

	$big_li = '';
	$result = db_select('aijia_pic', 'a')
          ->fields('a')
          ->condition('a.type', 'zs')
          ->orderBy('a.id', 'DESC')
          ->execute()->fetchAll();
	foreach($result as $item){

		$file = file_load($item->fid);

		$url = $item->url;

		if($url){
			$big_li .= '<a href="'. check_url($url) .'" target="_blank">
			<img src="' . image_style_url('front_pic_big', $file->uri) . '" /></a>';
		}else{
			$big_li .= '<img src="' . file_create_url($file->uri) . '" />';
		}

	}

	$output .= '<div id="best-page-slider">';

	$output .= '<div class="slider-wrapper theme-light">';

	$output .= '<div id="c-slider" class="nivoSlider">' . $big_li . '</div>';

	$output .= '</div>';

	$output .='</div>';

	$output .= '<div id="best-pic">';

	$result = db_select('aijia_pic', 'a')
          ->fields('a')
          ->condition('a.type', 'zp')
          ->orderBy('a.id', 'DESC')
          ->range(0, 8)
          ->execute()->fetchAll();
	foreach($result as $item){

		$file = file_load($item->fid);

		$url = $item->url;

		if($url){
			$output .= '<div class="best-pic"><a href="'. check_url($url) .'" target="_blank">
			<img src="' . file_create_url($file->uri) . '" /></a></div>';
		}else{
			$output .= '<div class="best-pic"><img src="' . file_create_url($file->uri) . '" /></div>';
		}

	}

	$output .= '<div class="clearfix"></div></div>';

	return $output;
}

//经典护肤
function classic(){
	drupal_set_title(t('全国销售榜单'));

	global $base_path;
	$output = '';

	$output .= '<div class="classic_top">';

	$output .='<div id="classic-list">';

	$items = taxonomy_get_tree(3);
	$accor = '';
	$terms = array();
	$i = 1;
	foreach($items as $value){
		if($value->depth == 0){
			if($i== 1){
				$accor .='<li class="active"><h3>'. $value->name .'</h3>';
			}else{
				$accor .='<li><h3>'. $value->name .'</h3>';
			}
			$terms = taxonomy_get_children($value->tid);
			if($terms){
				$accor .='<div class="panel loading">';
				foreach($terms as $term){
					$accor .= '<p><a href="classic-item/'. $term->tid .'">' . $term->name .'</a></p>';
				}
				$accor .='</div></li>';
			}else{
				$accor .='</li>';
			}
		}
		$i++;
	}

	$output .= '<ul id="accordion-1" class="accordion">';

	$output .= $accor;

	$output .= '</ul>';

	$output .='</div>';

	$output .='<div id="classic-slider">';

	$big_li = '';

	$result = db_select('aijia_pic', 'a')
          ->fields('a')
          ->condition('a.type', 'jd')
          ->orderBy('a.id', 'DESC')
          ->execute()->fetchAll();
	foreach($result as $item){
		$file = file_load($item->fid);
		$url = $item->url;
		if($url){
			$big_li .= '<a href="'. check_url($url) .'" target="_blank">
			<img src="' . image_style_url('front_pic_big', $file->uri) . '" /></a>';
		}else{
			$big_li .= '<img src="' . image_style_url('front_pic_big', $file->uri) . '" />';
		}
	}

	$output .= '<div class="slider-wrapper theme-light">';

	$output .='<div id="c-slider" class="nivoSlider">' . $big_li . '</div>';

	$output .= '</div>';

	$output .='</div>';

	$output .= '<div class="clearfix"></div></div>';

	$output .='<div id="classic-bottom">';

	$output .='<div id="classic-left">';

	$output .='<div id="classic-left-items">';

	$output .='<div id="classic-left-title"><a class="ac" href="#">本周人气之星</a></div>';

	$output .='<div id="classic-left-cont">';

	$r = db_query("SELECT nid FROM {node} n JOIN {field_data_field_product_week} w WHERE n.nid = w.entity_id AND w.field_product_week_value = :value", array(':value' => 1));

	foreach($r as $result){
		$output .='<div class="classic-left-item">';

		$node = node_load($result->nid);

		$path = node_uri($node);

		$output .='<div class="classic-left-img"><a href="' . url($path['path']) . '"><img src="'. image_style_url('product_75', $node->uc_product_image['und'][0]['uri']) .'" /></a></div>';

		$output .='<div class="class-left-item-cont">';

		$output .='<p><strong><a href="' . url($path['path']) . '">'. $node->title .'</a></strong></p>';

		$output .='<p><strong>价格:</strong>￥'. number_format($node->price, 2, '.', '') .'</p>';

		$field = field_get_items('node', $node, 'field_product_stype');
		$output .='<p><strong>肤质类型:'. $field[0]['value'] .'</strong></p>';

		$output .='<p>'. l('查看详情 >', $path['path']) .'</p>';

		$output .='</div>';

		$output .='<div class="clearfix"></div></div>';
	}

	$output .='</div></div></div>';

	$output .='<div id="classic-right">';

	$output .='<div id="classic-right-top">';

	$result = db_select('aijia_pic', 'a')
          ->fields('a')
          ->condition('a.type', 'jdp')
          ->orderBy('a.id', 'DESC')
          ->range(0, 3)
          ->execute()->fetchAll();
	foreach($result as $item){

		$file = file_load($item->fid);

		$url = $item->url;

		if($url){
			$output .= '<div class="classic-right-top-item"><a href="'. check_url($url) .'" target="_blank">
			<img src="' . file_create_url($file->uri) . '" /></a></div>';
		}else{
			$output .= '<div class="classic-right-top-item"><img src="' . file_create_url($file->uri) . '" /></div>';
		}

	}

	$output .='<div class="clearfix"></div></div>';

	$output .='<a href="#"><img width="680" height="98" border="0" src="'.$base_path.'sites/default/files/cb.jpg"></a>';

	$output .='</div>';

	$output .='<div class="clearfix"></div></div>';

	return $output;
}

function classic_item($tid){
	$term = taxonomy_term_load($tid);

	drupal_set_title($term->name);
	$output = '';

	$output .= '<div class="main_top_back"><img src="'. base_path() .'sites/default/files/np.jpg" /></div>';

	$output .='<div id="classic-items-title">人气之星</div>';

	$output .='<div id="classic-items">';

	$r = db_query("SELECT nid FROM {taxonomy_index} n JOIN {field_data_field_product_week} w WHERE n.nid = w.entity_id AND w.field_product_week_value = :value AND n.tid = :tid",
	 array(':value' => 1, ':tid' => $tid));

	foreach($r as $result){

		$node = node_load($result->nid);

		$path = node_uri($node);

		$output .='<div class="classic-item">';

		$output .='<div class="classic-item-img"><a href="' . url($path['path']) . '"><img src="'. image_style_url('product_150', $node->uc_product_image['und'][0]['uri']) .'" /></a></div>';

		$output .='<div class="classic-item-cont">';

		$output .='<p><strong><a href="' . url($path['path']) . '">'. $node->title .'</a></strong></p>';

		$output .='<p><strong>价格:￥</strong>'. number_format($node->price, 2, '.', '') .'</p>';

		$stype = field_get_items('node', $node, 'field_product_stype');

		$output .='<p><strong>肤质类型:</strong>'. $stype[0]['value'] .'</p>';

		$output .='<p>'. l('查看详情 >', $path['path']) .'</p>';

		$output .='</div>';

		$output .='<div class="clearfix"></div></div>';
	}

	$output .='<div class="clearfix"></div></div>';

	return $output;
}

function zx(){
	drupal_set_title(t('产品咨询'));

	global $base_path;
	$output = '';

	$output .= '<div class="classic_top">';

	$output .='<div id="classic-list">';

	$items = taxonomy_get_tree(5);
	$accor = '';
	$terms = array();
	$i = 1;
	foreach($items as $value){
		if($value->depth == 0){
			if($i == 1){
				$accor .='<li class="active"><h3>'. $value->name .'</h3>';
			}else{
				$accor .='<li><h3>'. $value->name .'</h3>';
			}

			$terms = taxonomy_get_children($value->tid);
			if($terms){
				$accor .='<div class="panel loading">';
				foreach($terms as $term){
					$accor .= '<p><a href="zx-item/'. $term->tid .'">' . $term->name .'</a></p>';
				}
				$accor .='</div></li>';
			}else{
				$accor .='</li>';
			}
		}
		$i++;
	}

	$output .= '<ul id="accordion-2" class="accordion">';

	$output .= $accor;

	$output .= '</ul>';

	$output .='</div>';

	$output .='<div id="classic-slider">';

	$big_li = '';

	$result = db_select('aijia_pic', 'a')
          ->fields('a')
          ->condition('a.type', 'zx')
          ->orderBy('a.id', 'DESC')
          ->execute()->fetchAll();
	foreach($result as $item){
		$file = file_load($item->fid);
		$url = $item->url;
		if($url){
			$big_li .= '<a href="'. check_url($url) .'" target="_blank">
			<img src="' . image_style_url('front_pic_big', $file->uri) . '" /></a>';
		}else{
			$big_li .= '<img src="' . image_style_url('front_pic_big', $file->uri) . '" />';
		}
	}

	$output .= '<div class="slider-wrapper theme-light">';

	$output .='<div id="zx-slider" class="nivoSlider">' . $big_li . '</div>';

	$output .= '</div>';

	$output .='</div>';

	$output .= '<div class="clearfix"></div></div>';

	$output .='<div id="classic-bottom">';

	$output .='<div id="classic-left">';

	$output .='<div id="classic-left-items">';

	$output .='<div id="classic-left-title"><a class="ac" href="#">本周人气之星</a></div>';

	$output .='<div id="classic-left-cont">';

	$query = db_select('field_data_field_product_week','n')
		->fields('n')
    	->condition('n.field_product_week_value', 1)
  		->execute()->fetchAll();

	foreach($query as $result){

		$output .='<div class="classic-left-item">';

		$node = node_load($result->entity_id);

		$path = node_uri($node);

		$output .='<div class="classic-left-img"><a href="' . url($path['path']) . '"><img src="'. image_style_url('product_75', $node->uc_product_image['und'][0]['uri']) .'" /></a></div>';

		$output .='<div class="class-left-item-cont">';

		$output .='<p><strong><a href="' . url($path['path']) . '">'. $node->title .'</a></strong></p>';

		$output .='<p><strong>价格:￥</strong>'. number_format($node->price, 2, '.', '') .'</p>';

		$field = field_get_items('node', $node, 'field_product_stype');

		$output .='<p><strong>肤质类型:'. $field[0]['value'] .'</strong></p>';

		$output .='<p>'. l('查看详情 >', $path['path']) .'</p>';

		$output .='</div>';

		$output .='<div class="clearfix"></div></div>';
	}

	$output .='</div></div></div>';

	$output .='<div id="classic-right">';

	$output .='<div id="classic-right-top">';

	$output .='<div class="classic-right-top-item"><a href="#"><img src="'.$base_path.'sites/default/files/c_1.jpg" /></a></div>';

	$output .='<div class="classic-right-top-item"><a href="#"><img src="'.$base_path.'sites/default/files/c_2.jpg" /></a></div>';

	$output .='<div class="classic-right-top-item"><a href="#"><img src="'.$base_path.'sites/default/files/c_3.jpg" /></a></div>';

	$output .='<div class="clearfix"></div></div>';

	$output .='<a href="#"><img width="680" height="98" border="0" src="'.$base_path.'sites/default/files/cb.jpg"></a>';

	$output .='</div>';

	$output .='<div class="clearfix"></div></div>';

	return $output;
}

function zx_item($tid){
	$term = taxonomy_term_load($tid);

	drupal_set_title($term->name);
	$output = '';

	$output .= '<div class="main_top_back"><img src="'. base_path() .'sites/default/files/np.jpg" /></div>';

	$output .='<div id="classic-items-title">人气之星</div>';

	$output .='<div id="classic-items">';

	$r = db_query("SELECT nid FROM {taxonomy_index} n JOIN {field_data_field_product_week} w WHERE n.nid = w.entity_id AND w.field_product_week_value = :value AND n.tid = :tid",
	 array(':value' => 1, ':tid' => $tid));

	foreach($r as $result){

		$node = node_load($result->nid);

		$path = node_uri($node);

		$output .='<div class="classic-item">';

		$output .='<div class="classic-item-img"><a href="' . url($path['path']) . '"><img src="'. image_style_url('product_150', $node->uc_product_image['und'][0]['uri']) .'" /></a></div>';

		$output .='<div class="classic-item-cont">';

		$output .='<p><strong><a href="' . url($path['path']) . '">'. $node->title .'</a></strong></p>';

		$output .='<p><strong>价格:￥</strong>'. number_format($node->price, 2, '.', '') .'</p>';

		$output .='<p><strong>肤质类型:</strong>'. $node->field_product_stype['und'][0]['value'] .'</p>';

		$output .='<p>'. l('查看详情 >', $path['path']) .'</p>';

		$output .='</div>';

		$output .='<div class="clearfix"></div></div>';
	}

	$output .='<div class="clearfix"></div></div>';

	return $output;
}

function product($nid) {
	$output = '';
	$node = node_load($nid);

	$output .='<div class="node-'.$nid.' clearfix">';
	$output .='<div class="prod-cont">';
  $output .='<div class="prod-img"><img src="'.file_create_url($node->uc_product_image['und'][0]['uri']).'" /></div>';
  $output .='<div class="prod-view">';
  $output .='<div class="prod-tilte"><h1>'.$node->title.'</h1></div>';
  $output .='<div class="prod-sku prod-cont-item">'.$node->model.'</div>';
  $output .='<div class="prod-body prod-cont-item">'.$node->body['und'][0]['safe_value'].'</div>';
  $output .='<div class="prod-stype prod-cont-item"><p><strong>肌肤类型: </strong>'.$node->field_product_stype['und'][0]['value'].'</p></div>';
  $output .='<div class="prod-cont-item"><strong>'.$node->field_product_rl['und'][0]['value'].'</strong></div>';
  $output .='<div class="prod-cont-item"><a id="add_link" href="#"><img border="0" alt="添加到购物袋" src="'.base_path().'sites/all/themes/aijia/images/spp-add-to-bag-btn.gif"></a></div>';
  $output .='</div><div class="clearfix"></div></div>';

	$output .='<div id="comment">';

	$output .='<div id="comment-title">产品评级</div>';

	$comment = new stdClass;
	$comment->nid = 10;
	$form=drupal_get_form('comment_form', $comment);

	$output .= render($form);

	$output .='</div>';

  $output .='<div id="wrapper" class="clearfix"><div id="com-header">
						<div id="com-header-con"><span id="com-header-title">客户评价</span>
        		<span id="com-header-view">查看></span>
        		<span>
        		<select>
						<option selected="selected" value="0">选择排序顺序</option>
						<option value="1">时间-最新优先</option>
            <option value="2">时间-最旧优先</option>
						</select>
						</span>
      			</div>
    				</div>';

  $output .='<div id="com-cont">';
		$build = array();
		$limit = 2;
		$select = db_select('comment', 'c')
			->condition('nid', $node->nid,'=')
			->fields('c', array('cid'))
			->extend('PagerDefault')
			->limit($limit);
		$cids = $select->execute()->fetchCol();
			$i = 0;
			foreach ($cids as $cid) {
				$comment = comment_load($cid);
				$user = user_load($comment->uid);
				if($i == 0 || $i%$limit == 0){
					$output .='<div class="com-item com-item-first">';
				}elseif($i%$limit == $limit-1){
					$output .='<div class="com-item com-item-last">';
				}else{
					$output .='<div class="com-item">';
				}

      	$output .='<div class="com-item-left">';
      	$output .='<div class="com-item-title">'.$comment->subject.'</div>';
        $output .='<div class="com-item-body">"'. $comment->comment_body['und'][0]['value'] .'"</div>';
      	$output .='</div>';
				$output .='<div class="com-item-right">';

      	$output .='<div>'.$user->name.'</div>';
      	$output .='</div>';
      	$output .='<div class="clearfix"></div></div>';

				$i++;
			}

  		$output .= theme('pager');

    $output .='</div>';
  	$output .='</div></div>';

		$five = field_get_items('node', $node, 'field_fivestar');
		print debug($five);
	return $output;
}

function aijia_info(){
	drupal_set_title(t('产品咨询'));

	global $base_path;
	$output = '';

	$output .= '<div class="classic_top">';

	$output .='<div id="classic-list">';

	$output .= '<h3>联系我们</h3>';

	$output .='<p>2005 清洁实验室有限公司 全球版权所有（Clinique Laboratories, LLC.）
Corporate Headquarters
767 Fifth Avenue
New York, N.Y. 10153
U.S. </p>';

	$output .='<p>雅诗兰黛（上海）商贸有限公司
中国上海市长乐路989号 世纪商贸广场38楼
200031</p>';

	$output .='<p>邮政编码:221000</p>';

	$output .='<p>联系电话：86-21-61208999</p>';

	$output .='<p>传真：86-21-54075515</p>';

	$output .='</div>';

	$output .='<div id="classic-slider">';

	$big_li = '';
	$result = db_query("SELECT nid FROM {node} WHERE type = :type", array(':type' => array('cpzx_pic')));
	foreach($result as $item){
		$node = node_load($item->nid);
		$field_ad_url = field_get_items('node', $node, 'field_ad_url');
		$field_ad_pic = field_get_items('node', $node, 'field_ad_pic');
		$big_li .= '<a href="http://'. check_url($field_ad_url[0]['value']) .'" target="_blank"><img src="' . image_style_url('front_pic_big', $field_ad_pic[0]['uri']) . '" /></a>';
	}

	$output .= '<div class="slider-wrapper theme-light">';

	$output .='<div id="zx-slider" class="nivoSlider">' . $big_li . '</div>';

	$output .= '</div>';

	$output .='</div>';

	$output .= '<div class="clearfix"></div></div>';

	$output .='<div id="classic-bottom">';

	$output .='<div id="classic-left">';
	$output .='<div id="classic-left-items">';

	$output .='<div class="classic-left-title2">关于艾嘉</div>';

	$output .='<div id="classic-left-cont">';

	$output .='<p><a href="#">> 不断的革新，所谓的艾嘉</a></p>';

	$output .='<p><a href="#">> 肌肤的护理专家</a></p>';

	$output .='<p><a href="#">> 店铺加盟方案</a></p>';

	$output .='<img src="'.base_path().'sites/default/files/aijia-info2.jpg" />';

	$output .='</div>';

	$output .='<div class="classic-left-title2">女人应该有自己的梦想！</div>';

	$output .='<div id="classic-left-cont">';

	$output .='<p>有事业、独立、热爱生活的女生，这就是艾嘉女性，欢迎加入！</p>';

	$output .='</div>';

	$output .='<div class="classic-left-title2">咨询时间段</div>';

	$output .='<div id="classic-left-cont">';

	$output .='<p>请在每天9:00-21:00期间拨打我们400-670-1212联系我们的客户服务团队</p>';

	$output .='</div>';

	$output .='</div></div>';

	$output .='<div id="classic-right">';

	$output .='<div id="classic-right-top">';

	$output .='<div><img src="'.$base_path.'sites/default/files/aijia-info3.jpg" /></div>';

	$output .='<div class="clearfix"></div></div>';

	$output .='<a href="#"><img src="'.$base_path.'sites/default/files/aijia-info4.jpg"></a>';

	$output .='</div>';

	$output .='<div class="clearfix"></div></div>';

	return $output;
}

function mainpro() {

	$output = '';

	$output .= '<div style="margin-bottom:-2px"><img src="'.base_path().'sites/default/files/mainpro1.jpg"></div>';
	$output .= '<div style="margin-bottom:-2px"><img src="'.base_path().'sites/default/files/mainpro2.jpg"></div>';
	$output .= '<div><img src="'.base_path().'sites/default/files/mainpro3.jpg"></div>';

	$output .=	'<div style="position:absolute; left:248px; top:300px; width:200px; height:200px; z-index:74;">
					<div style="width:200px;height:200px;text-align:right; line-height:2.6em;">
					<div style="font-size:13px;font-weight: bold;"><a href="http://www.clinique.com.cn/product/1676/12813/index.tmpl">倩碧焕妍活力精华露</a>
					</div>

                   	<div style="font-size:12px;font-weight: bold;">¥620.00 </div>
                   	<div id="product-options"><a style="display:block" class="add_link" href="#"><img border="0" alt="立即购买" src="'.base_path().'sites/all/themes/aijia/images/add-to-bag_btn.gif"></a>
                	</div></div>
               	</div>';

    $output .=	'<div style="position:absolute; left:472px; top:200px; width:186px; height:92px; z-index:66;">
					<div style="width:200px;height:200px;text-align:right; line-height:2.6em;">
                   		<div style="font-size:13px;font-weight: bold;"><a href="http://www.clinique.com.cn/product/1687/5089/index.tmpl">倩碧深层水嫩保湿润肤霜</a>
                   		</div>

                   		<div style="font-size:12px;font-weight: bold;">¥450.00 </div>
                   		<div id="product-options">
                        	<a style="display:block" class="add_link" href="#"><img border="0" alt="立即购买" src="'.base_path().'sites/all/themes/aijia/images/add-to-bag_btn.gif"></a>
                   		</div>
               		</div>
				</div>';

	$output .= '<div style="position:absolute; left:161px; top:700px; width:110px; height:107px; z-index:72;">
					<div style="width:200px;height:200px;text-align:left; line-height:2.6em;" sku_base_id="12622">
                   		<div style="font-size:13px;font-weight: bold;"><a href="http://www.clinique.com.cn/product/1574/5223/index.tmpl">倩碧润肤乳</a></div>

                   		<div style="font-size:12px;font-weight: bold;">¥340.00 </div>
                  		<div id="product-options">
                        <a style="display:block" class="add_link" href="#"><img border="0" alt="立即购买" src="'.base_path().'sites/all/themes/aijia/images/add-to-bag_btn.gif"></a>

                   		</div>
               		</div>
              	</div>';
    $output .=	'<div style="position:absolute; left:710px; top:600px; width:159px; height:109px; z-index:73;">
					<div style="width:200px;height:200px;text-align:right; line-height:2.6em;" sku_base_id="20186">
                   	<div style="font-size:13px;font-weight: bold;"><a href="http://www.clinique.com.cn/product/3878/9287/index.tmpl">倩碧匀净卓研淡斑精华露</a></div>
                   	<div style="display:block"><img height="12px" src="/images/products/stars/rating-5_0.gif"></div>
                   	<div style="font-size:12px;font-weight: bold;">¥620.00 </div>
                   	<div id="product-options">
                        <a style="display:block" class="add_link" href="#"><img border="0" alt="立即购买" src="'.base_path().'sites/all/themes/aijia/images/add-to-bag_btn.gif"></a>
                   	</div>
               	</div>

				</div>';

	$output .= '<div style="position:absolute; left:248px; top:1090px; width:200px; height:200px; z-index:74;">
				<div style="width:150px;height:150px;text-align:left; line-height:2.6em;" sku_base_id="25754">
                  	<div style="font-size:13px;font-weight: bold;"><a href="http://www.clinique.com.cn/product/1676/12813/index.tmpl">倩碧焕妍活力精华露</a></div>
                   	<div style="display:block"><img height="12px" src="/images/products/stars/rating-4_9.gif"></div>
                   	<div style="font-size:12px;font-weight: bold;">¥620.00 </div>
                   	<div id="product-options">
                        <a style="display:block" class="add_link" href="#"><img border="0" alt="立即购买" src="'.base_path().'sites/all/themes/aijia/images/add-to-bag_btn.gif"></a>

                   	</div>
               	</div>

				</div>';

	$output .= '<div style="position:absolute; left:569px; top:1000px; width:161px; height:136px; z-index:75;">
				<div style="width:150px;height:150px;text-align:left; line-height:2.6em;" sku_base_id="31773">
                   	<div style="font-size:13px;font-weight: bold;"><a href="http://www.clinique.com.cn/product/1605/15520/index.tmpl">倩碧水漾滋润唇膏笔</a></div>
                   	<div style="display:block"><img height="12px" src="/images/products/stars/rating-4_9.gif"></div>
                   	<div style="font-size:12px;font-weight: bold;">¥160.00 </div>
                   	<div id="product-options">
                        <a style="display:block" class="add_link" href="#"><img border="0" alt="立即购买" src="'.base_path().'sites/all/themes/aijia/images/add-to-bag_btn.gif"></a>

                   	</div>
               		</div>

				</div>';

	return $output;

}
